﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RCloud.Data.List
{
    /// <summary>
    /// 预测投票检测
    /// </summary>
    public class UserRatingCheckClass : Doo.DataClass.DataClassBase<REntities>
    {
        public long GetRating(REntities ent, long userID, long movieID)
        {
            var query = from rat in ent.UserRatingHistory
                        where rat.UserID == userID && rat.MovieID == movieID
                        select rat.Rating;
            return query.FirstOrDefault();
        }
    }
}
